#include <iostream>
#include <cstring>

class Student
{
    public;
    void SetID(int id)
    {
        m_id = id;
    }
    void SetName(coust char *name)
    {
        strcpy(m_name,name,19);
    }
    void show()
    {
        std::cout<<m_id<<" "<<m_name<<std::endl;
    }

    private:
        int m_id;       //成员变量
        char name[20];
};


int main()
{
    Student s;
    s.SetID(1);
    s.SetName("zhangsan");
    s.show();
    return 0;
}